package br.com.lsi.bean;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import br.com.lsi.business.ProfessorBusiness;
import br.com.lsi.entidades.Professor;

@ManagedBean
@SessionScoped
public class ProfessorBean {
	private ProfessorBusiness professorBusiness;

	public void salvar(Professor professor) {
		professorBusiness.salvar(professor);
	}

	public void deletar(Professor professor) {
		professorBusiness.deletar(professor);
	}

	public void alterar(Professor professor) {
		professorBusiness.alterar(professor);
	}
	public List<Professor> listar() {
		return professorBusiness.listar();
	}

}
